/*! \file array.h
 *	\brief <write description for array.h>
 *
 *	created:	2011/06/01
 *	created:	1:6:2011   11:29
 *	filename: 	C:\Users\test\Documents\tactics-engine\libs\core\array.h
 *	file path:	C:\Users\test\Documents\tactics-engine\libs\core
 *	file base:	array
 *	file ext:	h
 *	author:		Vitalii Trubchaninov
 *				VennGrayDog@gmail.com
 */

#ifndef _CORE_ARRAY_H_
#define _CORE_ARRAY_H_

#pragma once

namespace tt{
namespace core{

template <typename T, size_t N>
char (&ArraySizeHelper(T (&array)[N]))[N];
#define ttArraySize(array) (sizeof(core::ArraySizeHelper(array)))

} //namespace core
} //namespace tt

#endif //_CORE_ARRAY_H_